package com.zgg.core.annotation

/**
 * @author: zgg
 * @date: 2021-07-03 21:32
 */
enum class HttpMethod {
    GET, POST
}

@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
annotation class HttpHandler(
    val path: String,
    val method: Array<HttpMethod> = [HttpMethod.GET, HttpMethod.POST],
    val produce: String = "application/json; charset=utf-8",  /*String consumes() default "text/html";*/
    val isBlocking: Boolean = false
)

@Target(AnnotationTarget.FIELD, AnnotationTarget.VALUE_PARAMETER)
annotation class Param(val defaultValue: String = "")